//
//  PrivateMange.h
//  RuiHeAppApp
//
//  Created by Yan Chen on 2023/7/5.
//

#import <Foundation/Foundation.h>
#import "RHUserModel.h"
NS_ASSUME_NONNULL_BEGIN

typedef void(^succuessBlock)(RHUserModel *userModel);

@interface PrivateMange : NSObject

@property (nonatomic ,assign) BOOL isLogined;
//要在个人页面获取个人信息后才会有数据
@property (nonatomic ,strong) RHUserModel *currentUser;

@property (nonatomic ,assign) BOOL isShowLoginExpired;
+ (PrivateMange *)share;

- (void)getAppstoreVersion;
///获取用户信息
-(void)getUserInfoSuccess:(succuessBlock)success;

///归档用户信息
-(void)saveUserInfo;
///解档用户信息
-(BOOL)readUserInfo;
@end

NS_ASSUME_NONNULL_END
